<?php
/**
 * MottoController.class.php
 * 幸福语录控制器
 * 
 * @author 	王中艺	<wangzy_smile@qq.com>
 * @date 	2017-05-21
 */

namespace Wechat\Controller;

class MottoController extends BaseController {

	function index(){
        C('PAGE_COUNT', 7);
        $this->response([
            'list'  => D('Motto')->getList(['status' => 1], 1),
            'user_info' => C('User')
        ]);
		// $newMottoInfo 	= D('Motto')->getNewItem();
		// $this->outOInfo([
		// 	'motto_info' => $newMottoInfo,
		// 	'user_info'	=> C('user')
		// ]);
	}
	
}